{menuList}
<br>
<span id="hktime"></span>，
<span id="countdownstr"></span>
<script>
var now = new Date(1000 * {phptime});
nowdate();
function nowdate()
{
    document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds()+"</b>");
    now.setTime(now.getTime() + 1000);
    setTimeout("nowdate()",1000);
}


var timestap = {timestap};
function countdown()
{
    if (timestap >= 0) {
        timediff = timestap;
        days = Math.floor(timediff / (60 * 60 * 24)); 
    	timediff -= days * (60 * 60 * 24);
    	hours = Math.floor(timediff / (60 * 60));
    	timediff -= hours * (60 * 60);	
    	mins = Math.floor(timediff / (60));
    	timediff -= mins * (60);	
    	secs = Math.floor(timediff);
        
        str = "距离截止下注时间还有 ";
        if (days > 0 ) str += "<b>" + days + "</b> 天 ";
        if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
        if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
        str += "<b>" + secs + "</b> 秒 ";
        countdownstr.innerHTML =  str;
        setTimeout("countdown()",1000)
        timestap-=1;
        if (timestap==0) {
            //location.reload();
			My_Reload();
        }
    } else {
        countdownstr.innerHTML =  "<font color=red><b>已经截止下注！</b></font>";
    }
}
countdown();
</script>

<table border="0" width="750" id="table6">
<tr>
<td width="660">
<table width="100%" cellpadding=2 cellspacing=1 border=0 class="table0" id="table12">
<tr class={td0}>
  <td nowrap>生肖</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>生肖</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>生肖</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>生肖</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
</tr>
{list21}
</table>
</td>
<tr><td valign="top">{list21sum}</td>
<tr><td valign="top">&#12288;</td></tr>

<td width="660">
<table width="100%" cellpadding=2 cellspacing=1 border=0 class="table0" id="table18">
<tr class={td0}>
  <td nowrap>尾数</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>尾数</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>尾数</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>尾数</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
  <td nowrap>尾数</td>
  <td nowrap>笔数</td>
  <td nowrap>金额</td>
  <td nowrap>赔率</td>
  <td nowrap>输赢</td>
</tr>
{list22}
</table>
</td>
<tr><td valign="top">{list22sum}</td></tr>
</tr></table>

<br>

<p>
每 <select name=oReload onchange="chgreload(this.value)">
<option value="0">不更新</option>
<option value="10">10 秒</option>
<option value="30">30 秒</option>
<option value="60">60 秒</option>
<option value="120">120 秒</option>
</select> 更新，还有 <span id="n">60</span> 秒
&#12288;<input type=button value="重新整理" onclick='My_Reload()'>
</p>

<script>
var nReload = GetCookie("reload");
if (!nReload) { nReload = 0; }
var nNowReload = nReload;
for (i=0; i<document.all.oReload.options.length; i++) {
    if (document.all.oReload.options[i].value == nReload) {
        document.all.oReload.options[i].selected = true;
    }
}
    
function chgreload(n)
{
    bRun = false;
    if (nReload==0) {
        bRun = true;
    }
    SetCookie("reload",n);
    nReload = n;
    nNowReload = nReload;
    if (bRun) {
        timeReload();
    }
}

function timeReload()
{
    if (nReload > 0) {
        document.all.n.innerHTML = nNowReload--;
        if (nNowReload < 0) {
            //location.reload();
            //location.href = "op.php?op=agent&fp={fp}&lotto_id={lotto_id}&split={split_id}&disk={disk_id}&count=" + (new Date()).getTime();
			My_Reload();
            nNowReload = nReload;
        }
        setTimeout("timeReload()", 1000);
    }
}
if (nReload > 0) {
    document.all.n.innerHTML = nNowReload--;
    setTimeout("timeReload()", 1000);
}

function My_Reload()
{
	location.href = "op.php?op=agent&fp={fp}&lotto_id={lotto_id}&split={split_id}&disk={disk_id}&bets={bets_id}&select={selectid}&count=" + (new Date()).getTime();
}

</script>